#!/bin/bash

ant compile jar

rm -r aptgen
mkdir aptgen
mkdir aptgen/bin
mkdir aptgen/src

echo ""
echo "Running tests..."

apt -cp tjava.jar:lib/javaparser-1.0.8.jar -s aptgen/src/ -d aptgen/bin/ -factory tjava.apt.TjavaFactory -processor tjava.apt.TjavaModifierProcessor src/tjava/test/*/*.java
java -cp aptgen/bin -ea tjava.test.collections.Test